#{extends 'magicBox.html' /}
#{set 'title'}
${myMeeting.name} Notes
		#{if noteFlag}
	<a href="#" onclick="overlayOpen('/Meetings/newNote?id=${myMeeting.id}')"><img title= "add"src="@{'public/images/famfam/add.png'}" alt="[+]"/></a>
	#{/if}
#{/set}
#{if notes.size()==0}
#{note} there are no notes #{/note}
#{/if}
%{int i =0;}%
#{list items:notes, as:'note'}
#{if !note.deleted }
%{i++}%
	<div class="reload-meetingNote-${note.id}" name="@{Meetings.note(myMeeting.id,note.id,i,noteFlag)}">Note #%{i; out.print(i)}% #{if noteFlag}
	<a href="#" onclick="delete_meetingNote(${note.id},${myMeeting.id})"><img src="@{'public/images/famfam/delete.png'}" alt="[-]"/></a>
	<a href="#" onclick="overlayOpen('/meetings/editNote?noteId=${note.id}&meetingId=${myMeeting.id}')"><img src="@{'public/images/famfam/pencil.png'}" alt="[e]"/></a>
#{/if}</div> 
#{/if}
#{/list}

